package com.xinpu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author ayuan
 * @since 2021-05-11
 */
public class TUser extends Model<TUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 销售编号
     */
    private Integer pid;

    /**
     * 协作人编号
     */
    private String cid;

    /**
     * openid
     */
    private String openid;

    /**
     * 用户状态
     */
    private Integer sid;

    /**
     * 昵称
     */
    private String name;

    /**
     * 头像
     */
    private String portrait;

    /**
     * 性别0男1女
     */
    private Integer sex;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 学历0小学1初中2高中3大专4大学本科5研究生
     */
    private Integer education;

    /**
     * 公司
     */
    private String company;

    /**
     * 职业
     */
    private String job;

    /**
     * 电话
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 微信昵称
     */
    private String wxName;

    /**
     * 微信号
     */
    private String wxAccount;

    /**
     * 地址
     */
    private String address;

    /**
     * 详细地址
     */
    private String addressInfo;

    /**
     * 爱好
     */
    private String hobby;

    /**
     * 生日
     */
    private LocalDateTime birthday;

    /**
     * 需求
     */
    private String demand;

    /**
     * 二维码
     */
    private String qr;

    /**
     * 备注
     */
    private String remark;

    /**
     * 注册时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.DEFAULT)
    private LocalDateTime updateTime;

    /**
     * 来源编号
     */
    private Integer fid;

    /**
     * 添加人
     */
    private Integer addId;

    /**
     * 跟进状态 0:未跟进 1:跟进中 2:已完成
     */
    private Integer followStatus;

    /**
     * 类型0客户1线索
     */
    private Integer type;

    /**
     * 租户编号
     */
    private String tenantId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getEducation() {
        return education;
    }

    public void setEducation(Integer education) {
        this.education = education;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getWxName() {
        return wxName;
    }

    public void setWxName(String wxName) {
        this.wxName = wxName;
    }

    public String getWxAccount() {
        return wxAccount;
    }

    public void setWxAccount(String wxAccount) {
        this.wxAccount = wxAccount;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddressInfo() {
        return addressInfo;
    }

    public void setAddressInfo(String addressInfo) {
        this.addressInfo = addressInfo;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public LocalDateTime getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDateTime birthday) {
        this.birthday = birthday;
    }

    public String getDemand() {
        return demand;
    }

    public void setDemand(String demand) {
        this.demand = demand;
    }

    public String getQr() {
        return qr;
    }

    public void setQr(String qr) {
        this.qr = qr;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public Integer getAddId() {
        return addId;
    }

    public void setAddId(Integer addId) {
        this.addId = addId;
    }

    public Integer getFollowStatus() {
        return followStatus;
    }

    public void setFollowStatus(Integer followStatus) {
        this.followStatus = followStatus;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TUser{" +
                "id=" + id +
                ", pid=" + pid +
                ", cid=" + cid +
                ", openid=" + openid +
                ", sid=" + sid +
                ", name=" + name +
                ", portrait=" + portrait +
                ", sex=" + sex +
                ", age=" + age +
                ", education=" + education +
                ", company=" + company +
                ", job=" + job +
                ", phone=" + phone +
                ", email=" + email +
                ", wxName=" + wxName +
                ", wxAccount=" + wxAccount +
                ", address=" + address +
                ", addressInfo=" + addressInfo +
                ", hobby=" + hobby +
                ", birthday=" + birthday +
                ", demand=" + demand +
                ", qr=" + qr +
                ", remark=" + remark +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", fid=" + fid +
                ", addId=" + addId +
                ", followStatus=" + followStatus +
                ", type=" + type +
                ", tenantId=" + tenantId +
                "}";
    }
}
